<%@ page import="POJO.*" %>
<%@ page import="DB.*" %>
<table class="centering">
    <tr><td>
            
            <%
            if (request.getParameter("page") == null || session.getAttribute("user") == null) {
                out.print("<h2 class=\"nice\">Unauthorized entrance.</h2>");
            } else if (((User) session.getAttribute("user")).username == null) {
                out.print("<h2 class=\"nice\">You are not logged in.</h2>\n");
            } else {
                out.print("<h2 class=\"nice\">You have successfully logged out.</h2>");
                session.setAttribute("user", new User());
                response.sendRedirect("index.jsp");
            }
            %>
    </td></tr>
</table>